const frameworkReq = require.context('@/framework/assets/icons/svg', false, /\.svg$/)
const req = require.context('@/assets/icons/svg', false, /\.svg$/)
const requireAll = (requireContext) => requireContext.keys()

const re = /\.\/(.*)\.svg/

const frameworkSvgIcons = requireAll(frameworkReq).map((i) => {
  return i.match(re)[1]
})
const svgIcons = requireAll(req).map((i) => {
  return i.match(re)[1]
})

export default [...svgIcons, ...frameworkSvgIcons]
